package com.employment.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * 应用启动监听器
 * 
 * @author Employment System
 * @since 1.0.0
 */
@Slf4j
@Component
public class ApplicationStartupListener {

    @EventListener(ApplicationReadyEvent.class)
    public void onApplicationReady() {
        log.info("=================================================");
        log.info("招聘系统后端服务启动成功！");
        log.info("API文档地址: http://localhost:8080/swagger-ui.html");
        log.info("健康检查: http://localhost:8080/api/health");
        log.info("数据库监控: http://localhost:8080/druid/login.html");
        log.info("=================================================");
    }
}